package cn.com.cpic.insurance.rulecheck.core.condition;

import java.util.Set;

import cn.com.cpic.insurance.rulecheck.core.AbstractTokenable;
import cn.com.cpic.insurance.rulecheck.core.ModifiableSet;
import cn.com.cpic.insurance.rulecheck.core.SimpleModifiableSet;
import cn.com.cpic.insurance.rulecheck.core.condition.Condition;
import cn.com.cpic.insurance.rulecheck.core.condition.ConditionSwitch;

/**
 * 
 * 
 * @author 代波
 * @since 2011-8-13
 */
public final class SimpleConditionSwitch extends AbstractTokenable<String> implements ConditionSwitch {
	private static final long serialVersionUID = -4036883789044098237L;
	
	private final ModifiableSet<Condition> set;

	public SimpleConditionSwitch(String token) {
		this(token, (Set<Condition>) null);
	}

	public SimpleConditionSwitch(String token, Set<Condition> conditionSet) {
		this(token, new SimpleModifiableSet<Condition>(conditionSet));
	}

	public SimpleConditionSwitch(String token, ModifiableSet<Condition> conditionSet) {
		super(token);
		this.set = conditionSet;
	}

	public ModifiableSet<Condition> getConditionSet() {
		return set;
	}
}
